package com.jinbei.service;

import com.github.pagehelper.PageInfo;
import com.jinbei.domain.Logs;

/**
 * @author zflu
 * 日志 service
 * Created by lucky on 2018/7/10.
 */
public interface LogsService {

    /**
     * @author zflu
     * @Description  日志新增
     * @date 2018/7/10 16:03
     * @param logs
     * @return int
     */
    int insertLogs(Logs logs) throws Exception;

    /**
     * @author zflu
     * @Description  日志修改
     * @date 2018/7/10 16:03
     * @param logs
     * @return int
     */
    int updateLogs(Logs logs) throws Exception;

    /**
     * @author zflu
     * @Description 根据日志id删除日志
     * @date 2018/7/10 16:03
     * @param id
     * @return int
     */
    int deleteLogsById(int id) throws Exception;

    /**
     * @author zflu
     * @Description 根据日志id查询日志
     * @date 2018/7/10 16:03
     * @param id
     * @return com.jinbei.domain.Logs
     */
    Logs queryLogsById(int id) throws Exception;

    /**
     * @author zflu
     * @Description  日志记录分页列表
     * @date 2018/7/12 9:17
     * @param pageNum, pageSize ,reverse
     * @return com.github.pagehelper.PageInfo
     */
    PageInfo queryLogsPage(int pageNum, int pageSize , String reverse) throws Exception;
}
